home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / utilstem / util2 / locate.do1 < prev    next >
Encoding:
Text File  |  1986-10-30  |  2.6 KB  |  59 lines

  1.  
  2.           LOCATE                                  Steven Holzner
  3.           Command                                         No. 13
  4.  
  5.           ______________________________________________________
  6.  
  7.           Purpose:  Searches all files in the current and the
  8.                     root directories of a drive for all
  9.                     occurrences of any specified sequence (e.g.,
  10.                     a word or phrase) of up to 20 ASCII
  11.                     characters.  Additional search paths and/or
  12.                     drives may be specified by using Option 1.
  13.  
  14.           Format:   LOCATE searchstring
  15.  
  16.           Remarks:  In addition to returning the path(s) and
  17.                     filename(s) of the file(s) in which the
  18.                     requested string is found, LOCATE puts
  19.                     searchstring into a context of up to 20
  20.                     immediately surrounding characters.
  21.  
  22.                     LOCATE.COM is case sensitive;  the string to
  23.                     be found must be typed exactly.  The program
  24.                     does, however, strip "high-order" (non-ASCII)
  25.                     bits from searchstring, so it can be used,
  26.                     for example with WordStar document files.
  27.  
  28.                     Note:
  29.  
  30.                     1.   Requires the use of DOS 2.0 or later.
  31.  
  32.          Option 1:  Normally, if LOCATE does not find the
  33.                     requested string either in the current
  34.                     directory or in the disk's root directory, it
  35.                     simply exits.  It does not automatically
  36.                     search every subdirectory on every drive.
  37.  
  38.                     You can extend the search range, however, by
  39.                     preparing a simple ASCII file that specifies
  40.                     additional paths and/or drives.  The name of
  41.                     this file must be PATH.DAT, and it must be
  42.                     located in the root directory (usually C:\
  43.                     for hard disks, A:\ for floppies).  An
  44.                     example of such a PATH.DAT file would be
  45.  
  46.                     \WORK
  47.                     \LEVEL1
  48.                     \A:
  49.  
  50.                     Each line in the PATH.DAT file must end with
  51.                     a carriage return and specifies an additional
  52.                     path (or drive) for LOCATE to check before it
  53.                     exits.  The PATH.DAT file can be up to 300
  54.                     bytes in length, and incorrectly specified
  55.                     entries are ignored.
  56.  
  57.                     The use of Option 1 will, of course, slow
  58.                     down the overall speed of the search.
  59.